home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zoom 2
/
Zoom - Release 2 (1996)(Active Software)[!].iso
/
texts
/
dosman121
/
man
/
changetaskpri
< prev
next >
Wrap
Text File
|
1995-05-19
|
2KB
|
52 lines
ChangeTaskPri(V1.3,2.x,3.x) Location: C:)
NAME
ChangeTaskPri - Change a tasks execution priority.
SYNOPSIS
ChangeTaskPri [P=Pri] [T=TASK=PROCESS]
DESCRIPTION
By increasing/decreasing the priority of various
tasks in the system, you can increase/decrease the amount
of CPU time each task is allocated. If no type the
command without a number, it will return the task
priority number of that command.
If executed with no arguments, ChangeTaskPri will
return the priority of the currently executing process.
This is useful in shell scripts.
Your Amiga's operating system was created where each
task that is running gets assigned a priority from -128
to 127. The processor examines this number and prioritises
the tasks. The higher the number the more processing time
will be alloted to it by the processor.
WARNING: Never raise a task priority higher than 5 or
less than -5. If you raise it above 5 you will override
important system tasks such as the input handler (which
checks the keyboard and the mouse). If the priority is
below -5 it will be completely shut out of the CPU by the
most trivial of instruction.
EXAMPLE
1. To change task 3's priority to -5
ChangeTaskPri -5 Process 3
2. To Change current CLI's priority
ChangeTaskPri 5
3. 2.x/3.x ONLY: To utilize the backtick feature to
change the priority of the C:CONCLIP task to 5
ChangeTaskPri 5 Process 'Status com=c:conclip'